package com.personal.portal.admin.service;

import com.personal.portal.common.entity.Result;
import com.personal.portal.admin.entity.DictCategory;

import java.util.List;

/**
 * 字典分类服务接口
 */
public interface DictCategoryService {
    DictCategory queryById(Long id);

    DictCategory queryByEntity(DictCategory dictCategory);

    List<DictCategory> queryList(DictCategory dictCategory);

    DictCategory queryByCode(String code);

    Result.PageResult<DictCategory> queryPage(int pageNum, int pageSize, DictCategory dictCategory);

    int insert(DictCategory dictCategory);

    int update(DictCategory dictCategory);

    int deleteById(Long id);

    List<Long> deleteBatch(List<Long> ids);
}
